package com.bestescortbedsystem.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * ses_hospitalinfo
 * @author 
 */
@Data
public class SesHospitalinfo implements Serializable {

    @SuppressWarnings("AlibabaLowerCamelCaseVariableNaming")
    private Map<String, Object> GD;

    private List<SesHospitalinfoDepartment> keShi;

    private SesUser duijieren;
    /**
     * ID,主键PK
     */
    private Long hospitalinfoid;

    /**
     * 省份(对应地址表的地址ID)
     */
    private Long hospitalinfoprovinceid;

    /**
     * 城市(对应地址表的父ID)
     */
    private Long hospitalinfocityid;

    /**
     * 县(对应地址表的父ID)
     */
    private Long hospitalinfocontyid;

    /**
     * 用户表ID(对应对接人ID)
     */
    private Long userid;

    /**
     * 医院名称
     */
    private String hospitalinfoname;

    /**
     * 收取医院租金(百分比)
     */
    private Float hospitalinforent;

    /**
     * 医院银行卡号
     */
    private String hospitalinfocardnumber;

    /**
     * 收益
     */
    private Float hospitalinfosharing;

    /**
     * 医院创建时间
     */
    private String hospitalinfocreatetime;

    /**
     * 股东ID
     */
    private Long usershareholderid;

    /**
     * 一级分销商ID
     */
    private Long userdistributorsid1;

    /**
     * 二级分销商ID
     */
    private Long userdistributorsid2;

    /**
     * 医院电话
     */
    private String hospitalinfophone;

    private static final long serialVersionUID = 1L;

    public Long getHospitalinfoid() {
        return hospitalinfoid;
    }

    public void setHospitalinfoid(Long hospitalinfoid) {
        this.hospitalinfoid = hospitalinfoid;
    }

    public Long getHospitalinfoprovinceid() {
        return hospitalinfoprovinceid;
    }

    public void setHospitalinfoprovinceid(Long hospitalinfoprovinceid) {
        this.hospitalinfoprovinceid = hospitalinfoprovinceid;
    }

    public Long getHospitalinfocityid() {
        return hospitalinfocityid;
    }

    public void setHospitalinfocityid(Long hospitalinfocityid) {
        this.hospitalinfocityid = hospitalinfocityid;
    }

    public Long getHospitalinfocontyid() {
        return hospitalinfocontyid;
    }

    public void setHospitalinfocontyid(Long hospitalinfocontyid) {
        this.hospitalinfocontyid = hospitalinfocontyid;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public String getHospitalinfoname() {
        return hospitalinfoname;
    }

    public void setHospitalinfoname(String hospitalinfoname) {
        this.hospitalinfoname = hospitalinfoname;
    }

    public Float getHospitalinforent() {
        return hospitalinforent;
    }

    public void setHospitalinforent(Float hospitalinforent) {
        this.hospitalinforent = hospitalinforent;
    }

    public String getHospitalinfocardnumber() {
        return hospitalinfocardnumber;
    }

    public void setHospitalinfocardnumber(String hospitalinfocardnumber) {
        this.hospitalinfocardnumber = hospitalinfocardnumber;
    }

    public Float getHospitalinfosharing() {
        return hospitalinfosharing;
    }

    public void setHospitalinfosharing(Float hospitalinfosharing) {
        this.hospitalinfosharing = hospitalinfosharing;
    }

    public String getHospitalinfocreatetime() {
        return hospitalinfocreatetime;
    }

    public void setHospitalinfocreatetime(String hospitalinfocreatetime) {
        this.hospitalinfocreatetime = hospitalinfocreatetime;
    }

    public Long getUsershareholderid() {
        return usershareholderid;
    }

    public void setUsershareholderid(Long usershareholderid) {
        this.usershareholderid = usershareholderid;
    }

    public Long getUserdistributorsid1() {
        return userdistributorsid1;
    }

    public void setUserdistributorsid1(Long userdistributorsid1) {
        this.userdistributorsid1 = userdistributorsid1;
    }

    public Long getUserdistributorsid2() {
        return userdistributorsid2;
    }

    public void setUserdistributorsid2(Long userdistributorsid2) {
        this.userdistributorsid2 = userdistributorsid2;
    }

    public String getHospitalinfophone() {
        return hospitalinfophone;
    }

    public void setHospitalinfophone(String hospitalinfophone) {
        this.hospitalinfophone = hospitalinfophone;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SesHospitalinfo other = (SesHospitalinfo) that;
        return (this.getHospitalinfoid() == null ? other.getHospitalinfoid() == null : this.getHospitalinfoid().equals(other.getHospitalinfoid()))
            && (this.getHospitalinfoprovinceid() == null ? other.getHospitalinfoprovinceid() == null : this.getHospitalinfoprovinceid().equals(other.getHospitalinfoprovinceid()))
            && (this.getHospitalinfocityid() == null ? other.getHospitalinfocityid() == null : this.getHospitalinfocityid().equals(other.getHospitalinfocityid()))
            && (this.getHospitalinfocontyid() == null ? other.getHospitalinfocontyid() == null : this.getHospitalinfocontyid().equals(other.getHospitalinfocontyid()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getHospitalinfoname() == null ? other.getHospitalinfoname() == null : this.getHospitalinfoname().equals(other.getHospitalinfoname()))
            && (this.getHospitalinforent() == null ? other.getHospitalinforent() == null : this.getHospitalinforent().equals(other.getHospitalinforent()))
            && (this.getHospitalinfocardnumber() == null ? other.getHospitalinfocardnumber() == null : this.getHospitalinfocardnumber().equals(other.getHospitalinfocardnumber()))
            && (this.getHospitalinfosharing() == null ? other.getHospitalinfosharing() == null : this.getHospitalinfosharing().equals(other.getHospitalinfosharing()))
            && (this.getHospitalinfocreatetime() == null ? other.getHospitalinfocreatetime() == null : this.getHospitalinfocreatetime().equals(other.getHospitalinfocreatetime()))
            && (this.getUsershareholderid() == null ? other.getUsershareholderid() == null : this.getUsershareholderid().equals(other.getUsershareholderid()))
            && (this.getUserdistributorsid1() == null ? other.getUserdistributorsid1() == null : this.getUserdistributorsid1().equals(other.getUserdistributorsid1()))
            && (this.getUserdistributorsid2() == null ? other.getUserdistributorsid2() == null : this.getUserdistributorsid2().equals(other.getUserdistributorsid2()))
            && (this.getHospitalinfophone() == null ? other.getHospitalinfophone() == null : this.getHospitalinfophone().equals(other.getHospitalinfophone()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getHospitalinfoid() == null) ? 0 : getHospitalinfoid().hashCode());
        result = prime * result + ((getHospitalinfoprovinceid() == null) ? 0 : getHospitalinfoprovinceid().hashCode());
        result = prime * result + ((getHospitalinfocityid() == null) ? 0 : getHospitalinfocityid().hashCode());
        result = prime * result + ((getHospitalinfocontyid() == null) ? 0 : getHospitalinfocontyid().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getHospitalinfoname() == null) ? 0 : getHospitalinfoname().hashCode());
        result = prime * result + ((getHospitalinforent() == null) ? 0 : getHospitalinforent().hashCode());
        result = prime * result + ((getHospitalinfocardnumber() == null) ? 0 : getHospitalinfocardnumber().hashCode());
        result = prime * result + ((getHospitalinfosharing() == null) ? 0 : getHospitalinfosharing().hashCode());
        result = prime * result + ((getHospitalinfocreatetime() == null) ? 0 : getHospitalinfocreatetime().hashCode());
        result = prime * result + ((getUsershareholderid() == null) ? 0 : getUsershareholderid().hashCode());
        result = prime * result + ((getUserdistributorsid1() == null) ? 0 : getUserdistributorsid1().hashCode());
        result = prime * result + ((getUserdistributorsid2() == null) ? 0 : getUserdistributorsid2().hashCode());
        result = prime * result + ((getHospitalinfophone() == null) ? 0 : getHospitalinfophone().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", hospitalinfoid=").append(hospitalinfoid);
        sb.append(", hospitalinfoprovinceid=").append(hospitalinfoprovinceid);
        sb.append(", hospitalinfocityid=").append(hospitalinfocityid);
        sb.append(", hospitalinfocontyid=").append(hospitalinfocontyid);
        sb.append(", userid=").append(userid);
        sb.append(", hospitalinfoname=").append(hospitalinfoname);
        sb.append(", hospitalinforent=").append(hospitalinforent);
        sb.append(", hospitalinfocardnumber=").append(hospitalinfocardnumber);
        sb.append(", hospitalinfosharing=").append(hospitalinfosharing);
        sb.append(", hospitalinfocreatetime=").append(hospitalinfocreatetime);
        sb.append(", usershareholderid=").append(usershareholderid);
        sb.append(", userdistributorsid1=").append(userdistributorsid1);
        sb.append(", userdistributorsid2=").append(userdistributorsid2);
        sb.append(", hospitalinfophone=").append(hospitalinfophone);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
